<!DOCTYPE html>
<html>
<head>
    <include file="Include:meta"/>
    <title>编辑推送模块-目的地运营集团数据管理平台</title>
    <include file="Include:style"/>
    <style>
        .w50 {
            width: 50px;
        }
    </style>
</head>
<body>
<include file="Include:header"/>
<include file="Include:left"/>
<div id="main">
    <div class="crumbs">
        <div class="crumbs-text">推送模块列表 > 编辑推送模块</div>
    </div>
    <div id="content">
        <form action="__APP__/EnterpriseWeChat/edit" method="post">
            <div class="form-main">
                <input hidden name="id" value="{$res_push['id']}">
                <div class="form-title">编辑推送模块</div>
                <div class="form-item">
                    <div class="input-label"><span class="asterisk">*</span>推送功能名称</div>
                    <div class="input-item">
                        <input type="text" class="form-control w200" value="{$res_push['action_name']}"
                               autocomplete="off" disabled="disabled">
                    </div>
                </div>
                <div class="form-item">
                    <div class="input-label"><span class="asterisk">*</span>推送功能标签</div>
                    <div class="input-item">
                        <input type="text" class="form-control w200" value="{$res_push['action_tag']}"
                               autocomplete="off" disabled="disabled">
                    </div>
                </div>
                <div class="form-item">
                    <div class="input-label">通知部门</div>
                    <div class="input-item">
                        <select name="push_department_id[]" multiple='multiple' class="form-control w400"
                                autocomplete="off">
                            <foreach name="res_departments" item="vo">
                                <option value="{$vo['id']}"
                                <foreach name="department_ids" item="v">
                                    <if condition="$v eq $vo['id']">selected</if>
                                </foreach>
                                >{$vo['name']}</option>
                            </foreach>
                        </select>(与通知人不可同时为空)
                    </div>
                </div>
                <div class="form-item">
                    <div class="input-label">通知人</div>
                    <div class="input-item">
                        <select name="push_user_id[]" multiple='multiple' class="form-control w400"
                                autocomplete="off">
                            <foreach name="user_list" item="vo">
                                <option value="{$vo['spell']}"
                                <foreach name="user_ids" item="v">
                                    <if condition="$vo['spell'] eq $v">selected</if>
                                </foreach>
                                >{$vo['username']}</option>
                            </foreach>
                        </select>(与通知部门不可同时为空)
                    </div>
                </div>
                <div class="form-item">
                    <div class="input-label"><span class="asterisk">*</span>开启状态</div>
                    <div class="input-item">
                        <select name="open" class="form-control w200 required_select" autocomplete="off"
                                required>
                            <option value="1"<if condition="$res_push['open'] eq 1">selected</if>>开启</option>
                            <option value="0"<if condition="$res_push['open'] eq 0">selected</if>>关闭</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="form-btn-item"><input type="submit" value="提交" class="btn btn-submit">
                <button class="btn btn-default goback" type="button">返回</button>
            </div>
        </form>
    </div>
</div>
</body>
<include file="Include:javascript"/>
</html>